<template>
    <div class="container">
        <div class="search">
            <!-- From Uiverse.io by Yaseen549 -->
            <input placeholder="Enter your text..." class="input" name="text" type="text">
            <button>搜索</button>
        </div>
    </div>

</template>

<script>
</script>

<style scoped>
.container {
    height: 42px;
    width: 100%;
    /* margin: 2px auto; */
    background-color: #000000;
    /* border-radius: 10px; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    /* position: fixed; */
    /* margin-bottom: 2px solid rgb(255, 255, 255); */
}

.search {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-left: 3px;
}

.input {
    margin: 1px;
    background-color: #212121;
    height: 100%;
    width: 68%;
    text-align: left;
    /* border: 2px solid white; */
    border-radius: 5px;
    /* box-shadow: 3px 3px 2px rgb(249, 255, 85); */
    padding: 10px;
    color: #e8e8e8;
}

.input:focus {
    /* color: rgb(0, 255, 255); */
    background-color: #212121;
    /* outline-color: rgb(0, 255, 255); */
    /* box-shadow: -3px -3px 15px rgb(0, 255, 255); */
    transition: .1s;
    transition-property: box-shadow;
}

/* From Uiverse.io by alexroumi */
button {
    margin-left: 8px;
    padding: 0 27px;
    border: unset;
    border-radius: 5px;
    color: #e2d4d4;
    z-index: 1;
    background: #53675b;
    position: relative;
    font-weight: 1000;
    font-size: 17px;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    transition: all 250ms;
    overflow: hidden;
}

button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #212121;
    z-index: -1;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    transition: all 250ms
}

button:hover {
    color: #e8e8e8;
}

button:hover::before {
    width: 100%;
}
</style>